<form method="post" key="set-mine" enctype="multipart/form-data" action="/admin/weixin/auth/config/save.html" class="layui-form">
    <#if snsAccount??><input type="hidden" name="id" value="${snsAccount.id!''}"></#if>
<div class="row">
    <div class="col-lg-12">
        <div class="ukefu-customer-div setting-wrapper">
            <div class="box default-box">
                <div class="box-header">
                    <h3 class="box-title">第三方平台配置</h3>
                </div>
                <div class="box-body ukefu-im-theme">
                    <div class="ukefu-webim-prop">
                        <div class="ukefu-webim-tl" style="clear:both;">请填写第三方平台配置信息</div>
                        <div class="box-item">
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="width:200px;">AppID(应用ID)：</label>
                                    <div class="layui-input-inline" style="width:400px;">
                                        <input type="text" name="appkey" required lay-verify="required" autocomplete="off"
                                               class="layui-input" value="${snsAccount.appkey!''}">
                                    </div>
                                    <font color="red">*</font>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="width:200px;">AppSecret(应用密钥)：</label>
                                    <div class="layui-input-inline" style="width:400px;">
                                        <input type="text" name="secret"   autocomplete="off"
                                               class="layui-input" placeholder="不填则不修改">
                                    </div>
                                    <font color="red">*</font>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="width:200px;">Token(令牌)：</label>
                                    <div class="layui-input-inline" style="width:400px;">
                                        <input type="text" name="token"  required lay-verify="required"  autocomplete="off"
                                               class="layui-input" value="${snsAccount.token!''}">
                                    </div>
                                    <font color="red">*</font>
                                </div>
                            </div>

                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="width:200px;">EncodingAESKey（43位）：</label>
                                    <div class="layui-input-inline" style="width:400px;">
                                        <input type="text" name="aeskey" value="${snsAccount.aeskey!''}" required lay-verify="required"  autocomplete="off" class="layui-input" oninput="$('#aeskeynum').text($(this).val().length);">
                                    </div>
                                    <font color="red">*</font>
                                </div>
                                <div class="layui-inline">
                                    <div class="layui-input-inline" id="aeskeynum">0</div>
                                </div>
                            </div>
                        </div>
                    </div>

</div>
            </div>
        </div>
    </div>
</div>
<div class="row">
    <div class="col-lg-3"></div>
    <div class="col-lg-9">
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit="" lay-filter="formDemo">保存</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </div>
</div>
</form>

<script language="javascript">
    <#if execute?? && execute == "false">
    top.layer.alert('二次 验证密码设置失败，输入的密码错误，请重新操作！', {icon: 2});
    </#if>
    <#if msg??>
    <#if msg == '1'>
    top.layer.alert('二次验证密码设置成功', {icon: 1});
    <#elseif msg == '2'>
    top.layer.alert('二次验证密码设置失败，请确认两次输入的密码一致', {icon: 2});
    <#elseif msg == '3'>
    top.layer.alert('二次验证密码设置失败，旧的密码验证失败，请输入正确的密码', {icon: 2});
    </#if>
    </#if>
    layui.use('form', function(){
        var form = layui.form;
        form.render('select'); //刷新select选择框渲染
    });
</script>